package mianxiangduixiangjinjie;

public class PersonTest {
    public static void main(String[] args) {
        Manager m = new Manager(1,"张三",52000.0,30000.0);
        System.out.println(m.getId()+","+m.getName()+","+m.getSalary()+","+m.getBonus());
        m.work();
        m.eat();

        Cook c = new Cook(2,"lisi",20000.0);
        System.out.println(c.getId()+","+c.getName()+","+c.getSalary());
        c.work();
        c.eat();
    }


}
